package p.sglmsn.top.getway.filter;

import cn.hutool.log.Log;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
@Component
public class AfpFiller implements GatewayFilter {
    static Log log = Log.get();
    @Override
    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
        log.info("{}",exchange.getRequest());
        return chain.filter(exchange);
    }
}
